import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class 蚂蚁感冒了 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        Integer[] arr = new Integer[n];
        for(int i=0;i<n;i++)
            arr[i]=s.nextInt();

        int mid=arr[0];
        Arrays.sort(arr, new Comparator<Integer>() {
            public int compare(Integer a, Integer b) {
                return Math.abs(a)-Math.abs(b);
            }
        });


        for(int i=0;i<n;i++)
            if(arr[i]==mid) mid=i;
        int count=1;
        if(arr[mid]>0) {
            for(int i=mid+1;i<n;i++)
                if(arr[i]<0) count++;

            if(count>1){
                for(int l=0;l<mid;l++)
                    if(arr[l]>0) count++;
            }
        }
        else {
            for(int l=0;l<mid;l++)
                if(arr[l]>0) count++;
            
            if(count>1){
                for(int i=mid+1;i<n;i++)
                    if(arr[i]<0) count++;
            }
        }

        System.out.println(count);
    }
}